<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Docs For Class plainTemplates</title>
  <link rel="stylesheet" href="../media/stylesheet.css" />
  <script src="../media/lib/classTree.js"></script>
<link id="webfx-tab-style-sheet" type="text/css" rel="stylesheet" href="../media/lib/tab.webfx.css" />
<script type="text/javascript" src="../media/lib/tabpane.js"></script>
  <script language="javascript" type="text/javascript" src="../media/lib/ua.js"></script>
<script language="javascript" type="text/javascript">
	var imgPlus = new Image();
	var imgMinus = new Image();
	imgPlus.src = "../media/images/plus.gif";
	imgMinus.src = "../media/images/minus.gif";
	
	function showNode(Node){
        switch(navigator.family){
        	case 'nn4':
        		// Nav 4.x code fork...
				var oTable = document.layers["span" + Node];
				var oImg = document.layers["img" + Node];
        		break;
        	case 'ie4':
        		// IE 4/5 code fork...
				var oTable = document.all["span" + Node];
				var oImg = document.all["img" + Node];
        		break;
        	case 'gecko':
        		// Standards Compliant code fork...
				var oTable = document.getElementById("span" + Node);
				var oImg = document.getElementById("img" + Node);
        		break;
        }
		oImg.src = imgMinus.src;
		oTable.style.display = "block";
	}
	
	function hideNode(Node){
        switch(navigator.family){
        	case 'nn4':
        		// Nav 4.x code fork...
				var oTable = document.layers["span" + Node];
				var oImg = document.layers["img" + Node];
        		break;
        	case 'ie4':
        		// IE 4/5 code fork...
				var oTable = document.all["span" + Node];
				var oImg = document.all["img" + Node];
        		break;
        	case 'gecko':
        		// Standards Compliant code fork...
				var oTable = document.getElementById("span" + Node);
				var oImg = document.getElementById("img" + Node);
        		break;
        }
		oImg.src = imgPlus.src;
		oTable.style.display = "none";
	}
	
	function nodeIsVisible(Node){
        switch(navigator.family){
        	case 'nn4':
        		// Nav 4.x code fork...
				var oTable = document.layers["span" + Node];
        		break;
        	case 'ie4':
        		// IE 4/5 code fork...
				var oTable = document.all["span" + Node];
        		break;
        	case 'gecko':
        		// Standards Compliant code fork...
				var oTable = document.getElementById("span" + Node);
        		break;
        }
		return (oTable && oTable.style.display == "block");
	}
	
	function toggleNodeVisibility(Node){
		if (nodeIsVisible(Node)){
			hideNode(Node);
		}else{
			showNode(Node);
		}
	}
</script>
<!-- template designed by Julien Damon based on PHPEdit's generated templates, and tweaked by Greg Beaver -->
<body bgcolor="#ffffff" ><!-- Start of Class Data -->
<h2>
	Class plainTemplates
</h2> (line <span class="linenumber">11</span>)
<div class="tab-pane" id="tabPane1">
<script type="text/javascript">
tp1 = new WebFXTabPane( document.getElementById( "tabPane1" ));
</script>

<div class="tab-page" id="Description">
<h2 class="tab">Description</h2>
<pre>
</pre>
<p>
	<b><i>Located in File: <a href="_plainTemplates.php.html">/plainTemplates.php</a></i></b><br>
</p>
<!-- ========== Info from phpDoc block ========= -->
<h5>Class for automated manipulation of plain HTML pages as advanced templates with _(phpQuery).</h5>
<ul>
		<li><strong>author:</strong> - Tobiasz Cudnik &lt;<a href="mailto:tobiasz.cudnik/gmail.com">tobiasz.cudnik/gmail.com</a>&gt;</li>
		<li><strong>version:</strong> - 0.5 beta</li>
		<li><strong>see:</strong> - phpQuery.class.php</li>
		<li><strong>link:</strong> - <a href="http://wiadomosc.info/plainTemplate">http://wiadomosc.info/plainTemplate</a></li>
		<li><strong>license:</strong> - <a href="http://www.opensource.org/licenses/mit-license.php">MIT License</a></li>
	</ul>
<br /><hr />
</div>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "Description" ) );</script>
<div class="tab-page" id="tabPage1">

<h2 class="tab">Class Variables</h2>
<!-- ============ VARIABLE DETAIL =========== -->
<strong>Summary:</strong><br />
<div class="var-title">
    static <span class="var-type">string</span>
    <a href="#var$cacheDir" title="details" class="property"><strong>$cacheDir</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">mixed</span>
    <a href="#var$cacheTimeout" title="details" class="property"><strong>$cacheTimeout</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">array</span>
    <a href="#var$dataSelectors" title="details" class="property"><strong>$dataSelectors</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">mixed</span>
    <a href="#var$debug" title="details" class="property"><strong>$debug</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">string</span>
    <a href="#var$fixWebRoot" title="details" class="property"><strong>$fixWebRoot</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">bool</span>
    <a href="#var$monitorCodeModification" title="details" class="property"><strong>$monitorCodeModification</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">bool</span>
    <a href="#var$monitorTemplateModification" title="details" class="property"><strong>$monitorTemplateModification</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">bool</span>
    <a href="#var$print" title="details" class="property"><strong>$print</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">mixed</span>
    <a href="#var$replace" title="details" class="property"><strong>$replace</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">string</span>
    <a href="#var$templatesDir" title="details" class="property"><strong>$templatesDir</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">array</span>
    <a href="#var$tidyConfig" title="details" class="property"><strong>$tidyConfig</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">bool</span>
    <a href="#var$useTidy" title="details" class="property"><strong>$useTidy</strong></a>
</div>
<div class="var-title">
    static <span class="var-type">mixed</span>
    <a href="#var$_template" title="details" class="property"><strong>$_template</strong></a>
</div>
<hr />
<a name="var$cacheDir" id="var$cacheDir"><!-- --></A>
<div style="background='#ffffff'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $cacheDir =  './cache/'</strong> (line <span class="linenumber">23</span>)
 </h4>
<h4>Data type : string</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>Path to direcotry where cacheed templates will be stored.</h5>
<ul>
		<li><strong>see:</strong> - self::$cacheTimeout</li>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$cacheTimeout" id="var$cacheTimeout"><!-- --></A>
<div style="background='#eeeeee'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $cacheTimeout =  false</strong> (line <span class="linenumber">49</span>)
 </h4>
<h4>Data type : mixed</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>Timeout for cached templates in minutes.</h5>
<div class="desc"><p>Generally uneeded because of checking templates modification time.  False (default) means no timeout.</p></div>
<ul>
		<li><strong>see:</strong> - self::$cache</li>
		<li><strong>see:</strong> - self::$cacheDir</li>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$dataSelectors" id="var$dataSelectors"><!-- --></A>
<div style="background='#ffffff'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $dataSelectors = array(<br />		'wrapper'	=&gt; '',		// CSS selector for wrapper. Wrapper is an elements that wraps the container and optionally other elements (like title).<br />		'container'	=&gt; 'ul',	// CSS selector for loop's container. Relative to wrapper.<br />		'row'		=&gt; 'li',	// CSS selector for row. Relative to container.<br />		'field'		=&gt; '.%s',	// CSS selector for row field. Relative to row. Use %s as field name.<br />		'inheritSelectors' =&gt; false,	// TODO; inherits parent selectors, only for children	<br />		'removeFieldClasses' =&gt; false,	// Removes field's class from matched field tag.<br />	)</strong> (line <span class="linenumber">79</span>)
 </h4>
<h4>Data type : array</h4>
<!-- ========== Info from phpDoc block ========= -->
<ul>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$debug" id="var$debug"><!-- --></A>
<div style="background='#eeeeee'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $debug =  false</strong> (line <span class="linenumber">17</span>)
 </h4>
<h4>Data type : mixed</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>Turns on/off debug. Includes phpQuery's one.</h5>
<ul>
		<li><strong>see:</strong> - phpQuery::$debug</li>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$fixWebRoot" id="var$fixWebRoot"><!-- --></A>
<div style="background='#ffffff'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $fixWebRoot =  ''</strong> (line <span class="linenumber">92</span>)
 </h4>
<h4>Data type : string</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>Fixes paths to CSS, JS and image files.</h5>
<ul>
		<li><strong>todo:</strong> - Dont update external links.</li>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$monitorCodeModification" id="var$monitorCodeModification"><!-- --></A>
<div style="background='#eeeeee'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $monitorCodeModification =  true</strong> (line <span class="linenumber">35</span>)
 </h4>
<h4>Data type : bool</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>Checks if source code file has been modified.</h5>
<div class="desc"><p>Use it only on developement enviroment as it runs debug_backtrace() every time.</p></div>
<ul>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$monitorTemplateModification" id="var$monitorTemplateModification"><!-- --></A>
<div style="background='#ffffff'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $monitorTemplateModification =  true</strong> (line <span class="linenumber">29</span>)
 </h4>
<h4>Data type : bool</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>Checks if source template file exists and if it has been modified.</h5>
<div class="desc"><p>Can be turned off for performance reasons on production enviroment.</p></div>
<ul>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$print" id="var$print"><!-- --></A>
<div style="background='#eeeeee'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $print =  true</strong> (line <span class="linenumber">54</span>)
 </h4>
<h4>Data type : bool</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>If true (default) prints template result to buffer, instead of returning it's string (optional).</h5>
<ul>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$replace" id="var$replace"><!-- --></A>
<div style="background='#ffffff'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $replace = array(<br />		'&lt;php&gt;'		=&gt; '&lt;?php ',<br />		'&lt;/php&gt;'	=&gt; ' ?&gt;', <br />		// TODO: rewrite those below to regexp searching only inside php tags, but not in string, maybe with support of &quot;{$nestedVars} in strings&quot;<br />		'%7B' =&gt; '{',<br />		'%24' =&gt; '$',<br />		'%7D' =&gt; '}',<br />	)</strong> (line <span class="linenumber">93</span>)
 </h4>
<h4>Data type : mixed</h4>
<!-- ========== Info from phpDoc block ========= -->
<ul>
		<li><strong>access:</strong> - protected</li>
	</ul>
</div>
<a name="var$templatesDir" id="var$templatesDir"><!-- --></A>
<div style="background='#eeeeee'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $templatesDir =  ''</strong> (line <span class="linenumber">40</span>)
 </h4>
<h4>Data type : string</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>Path prepended to template names.</h5>
<ul>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$tidyConfig" id="var$tidyConfig"><!-- --></A>
<div style="background='#ffffff'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $tidyConfig = array(<br />		'indent' =&gt; true,<br />		'indent-spaces' =&gt; 4,<br />		'wrap' =&gt; false,<br />		'show-body-only' =&gt; 'yes',<br />		'merge-divs' =&gt; false,<br />		'new-blocklevel-tags' =&gt; 'php',<br />	)</strong> (line <span class="linenumber">68</span>)
 </h4>
<h4>Data type : array</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>Config fo Tidy.</h5>
<ul>
		<li><strong>link:</strong> - <a href="http://tidy.sourceforge.net/docs/quickref.html">http://tidy.sourceforge.net/docs/quickref.html</a></li>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$useTidy" id="var$useTidy"><!-- --></A>
<div style="background='#eeeeee'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $useTidy =  false</strong> (line <span class="linenumber">62</span>)
 </h4>
<h4>Data type : bool</h4>
<!-- ========== Info from phpDoc block ========= -->
<h5>Use HTML Tidy for pretty output (if avaible).</h5>
<div class="desc"><p>Tidy is included with every PHP5 installation, but it has be manually activated into php.ini.  However there are several issues with Tidy at this time.</p></div>
<ul>
		<li><strong>todo:</strong> - Strip out HTML/BODY if it's soudlnt be in the template (something what show-body-only should do).</li>
		<li><strong>access:</strong> - public</li>
	</ul>
</div>
<a name="var$_template" id="var$_template"><!-- --></A>
<div style="background='#ffffff'">
<h4>
<img src="../media/images/PublicProperty.gif" border="0" /> <strong class="property">static $_template =  null</strong> (line <span class="linenumber">101</span>)
 </h4>
<h4>Data type : mixed</h4>
<!-- ========== Info from phpDoc block ========= -->
<ul>
		<li><strong>access:</strong> - protected</li>
	</ul>
</div>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage1" ) );</script>
</div>
<div class="tab-page" id="constantsTabpage">

<h2 class="tab">Class Constants</h2>
<!-- ============ VARIABLE DETAIL =========== -->
<strong>Summary:</strong><br />
<hr />
<script type="text/javascript">tp1.addTabPage( document.getElementById( "constantsTabpage" ) );</script>
</div>
<div class="tab-page" id="tabPage2">
<h2 class="tab">Method Detail</h2>
<!-- ============ METHOD DETAIL =========== -->
<strong>Summary:</strong><br />
<div class="method-summary">
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodcheckCache" title="details" class="method-name">checkCache</a>
        ()
        </div>
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodcleanCacheName" title="details" class="method-name">cleanCacheName</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$name</span>)
        </div>
    <div class="method-definition">
    static         <span class="method-result">string|false</span>
        <a href="#methodcreateTemplate" title="details" class="method-name">createTemplate</a>
        (<span class="var-type">string|array</span>&nbsp;<span class="var-name">$source</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">array()</span>], [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$callback</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$templateName</span> = <span class="var-default">null</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$cacheName</span>)
        </div>
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodgetCachePaths" title="details" class="method-name">getCachePaths</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$templateName</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$cacheDir</span> = <span class="var-default">null</span>])
        </div>
    <div class="method-definition">
    static         <span class="method-result">string|false</span>
        <a href="#methodgetTemplate" title="details" class="method-name">getTemplate</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$templateName</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$templatePath</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$cacheDir</span> = <span class="var-default">null</span>])
        </div>
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodincludePhpQuery" title="details" class="method-name">includePhpQuery</a>
        ()
        </div>
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodinsertData" title="details" class="method-name">insertData</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$data</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$selectors</span> = <span class="var-default">array()</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$suffix</span> = <span class="var-default">'Row'</span>])
        </div>
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodinsertRow" title="details" class="method-name">insertRow</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$selectors</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$row</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$_row</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$varName</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$prefixes</span> = <span class="var-default">array('','')</span>])
        </div>
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodisPhpQuery" title="details" class="method-name">isPhpQuery</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$var</span>)
        </div>
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodmapDepends" title="details" class="method-name">mapDepends</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$file</span>)
        </div>
    <div class="method-definition">
    static         <span class="method-result">array</span>
        <a href="#methodparseIncludes" title="details" class="method-name">parseIncludes</a>
        (<span class="var-type">phpQueryClass</span>&nbsp;<span class="var-name">$_</span>)
        </div>
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodPXTtoPHP" title="details" class="method-name">PXTtoPHP</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$PXT</span>)
        </div>
    <div class="method-definition">
    static         <span class="method-result">phpQueryClass</span>
        <a href="#methodremoveIncludes" title="details" class="method-name">removeIncludes</a>
        (<span class="var-type">phpQueryClass</span>&nbsp;<span class="var-name">$_</span>)
        </div>
    <div class="method-definition">
    static         <span class="method-result">string|false</span>
        <a href="#methodsaveTemplate" title="details" class="method-name">saveTemplate</a>
        (<span class="var-type">phpQueryClass</span>&nbsp;<span class="var-name">$_</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$templatePath</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$templateName</span> = <span class="var-default">null</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$dependencies</span> = <span class="var-default">array()</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$cacheDir</span> = <span class="var-default">null</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$unloadDocument</span> = <span class="var-default">true</span>])
        </div>
    <div class="method-definition">
    static         <span class="method-result">void</span>
        <a href="#methodsrcFilePath" title="details" class="method-name">srcFilePath</a>
        ()
        </div>
    <div class="method-definition">
            <span class="method-result">int</span>
        <a href="#methodclearCache" title="details" class="method-name">clearCache</a>
        ([<span class="var-type">string</span>&nbsp;<span class="var-name">$search</span> = <span class="var-default">'*'</span>])
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodrunCallback" title="details" class="method-name">runCallback</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$_</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$callback</span>)
        </div>
</div>
<hr />
<A NAME='method_detail'></A>


<a name="methodcheckCache" id="methodcheckCache"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method checkCache</strong> (line <span class="linenumber">466</span>)
 </h4> 
<h4><i>void</i> <strong>checkCache(
)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodcleanCacheName" id="methodcleanCacheName"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method cleanCacheName</strong> (line <span class="linenumber">493</span>)
 </h4> 
<h4><i>void</i> <strong>cleanCacheName(

$name)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $name</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodcreateTemplate" id="methodcreateTemplate"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method createTemplate</strong> (line <span class="linenumber">122</span>)
 </h4> 
<h4><i>string|false</i> <strong>createTemplate(
string|array
$source, [array
$data = array()], [mixed
$callback = null], [
$templateName = null], string
$cacheName)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Creates template from plain HTML file or certain part of it (with $source[1]).</h5>
<div class="desc"><p>If You want to insert DB data into template use $data and $dataSelectors.  You can apply callback on result with $callback.</p></div>
		<h4>Parameters</h4>
	<ul>
			<li><strong>string|array $source</strong>: Template file path as string or as [0] if array given. Relative to self::$templatesDir.  $source[1] is CSS selector that limits template to part(s) matching the selector.  Limiting template changes result's stack, except when $data present.</li>
			<li><strong>array $data</strong>: Optional. Containing var name (on [0]), value (on [1]) and selectors (on [2]). Name is needed to preserve scope.  Selectors are inherited from plainTemplates::$dataSelectors.  Data insertion changes result's stack to match place(s) where data has been inserted.  If you need another state of the result's stack - change it manually in callback.  $data[2] can be a string, then it's used as 'wrapper'.</li>
			<li><strong>mixed $callback</strong>: Optional. Can be result of create_function(), function name, array with object reference in [0] and method name in [1] or array with class name in [0] and static method name in [1].  Callback called after template parsing.  Can return phpQueryClass object to change stack.</li>
			<li><strong>string $cacheName</strong>: Optional. Needed when You want to build two templates with same selectors from one HTML. Also helps finding template inside cache dir.</li>
			<li><strong> $templateName</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - Returns include path or false in case of error.</li>
			<li><strong>access</strong> - public</li>
		</ul>
</div>
<a name="methodgetCachePaths" id="methodgetCachePaths"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method getCachePaths</strong> (line <span class="linenumber">481</span>)
 </h4> 
<h4><i>void</i> <strong>getCachePaths(

$templateName, [
$cacheDir = null])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $templateName</strong>: </li>
			<li><strong> $cacheDir</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodgetTemplate" id="methodgetTemplate"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method getTemplate</strong> (line <span class="linenumber">171</span>)
 </h4> 
<h4><i>string|false</i> <strong>getTemplate(

$templateName, 
$templatePath, [
$cacheDir = null])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns cached template's path for inclusion.</h5>
<div class="desc"><p>Returns false if cache isn't up-to-date.</p></div>
		<h4>Parameters</h4>
	<ul>
			<li><strong> $templateName</strong>: </li>
			<li><strong> $templatePath</strong>: </li>
			<li><strong> $cacheDir</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - public</li>
		</ul>
</div>
<a name="methodincludePhpQuery" id="methodincludePhpQuery"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method includePhpQuery</strong> (line <span class="linenumber">527</span>)
 </h4> 
<h4><i>void</i> <strong>includePhpQuery(
)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodinsertData" id="methodinsertData"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method insertData</strong> (line <span class="linenumber">365</span>)
 </h4> 
<h4><i>void</i> <strong>insertData(

$data, [
$selectors = array()], [
$suffix = 'Row'])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $data</strong>: </li>
			<li><strong> $selectors</strong>: </li>
			<li><strong> $suffix</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodinsertRow" id="methodinsertRow"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method insertRow</strong> (line <span class="linenumber">420</span>)
 </h4> 
<h4><i>void</i> <strong>insertRow(

$selectors, 
$row, 
$_row, 
$varName, [
$prefixes = array('','')])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $selectors</strong>: </li>
			<li><strong> $row</strong>: </li>
			<li><strong> $_row</strong>: </li>
			<li><strong> $varName</strong>: </li>
			<li><strong> $prefixes</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>todo</strong> - support defining field selectors per field</li>
			<li><strong>todo</strong> - support empty field selectors (insert field data directly inside row selector</li>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodisPhpQuery" id="methodisPhpQuery"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method isPhpQuery</strong> (line <span class="linenumber">524</span>)
 </h4> 
<h4><i>void</i> <strong>isPhpQuery(

$var)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $var</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodmapDepends" id="methodmapDepends"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method mapDepends</strong> (line <span class="linenumber">354</span>)
 </h4> 
<h4><i>void</i> <strong>mapDepends(

$file)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $file</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodparseIncludes" id="methodparseIncludes"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method parseIncludes</strong> (line <span class="linenumber">290</span>)
 </h4> 
<h4><i>array</i> <strong>parseIncludes(
phpQueryClass
$_)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Fetches included templates content into parsed one.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>phpQueryClass $_</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - Array of dependencies.</li>
			<li><strong>access</strong> - public</li>
		</ul>
</div>
<a name="methodPXTtoPHP" id="methodPXTtoPHP"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method PXTtoPHP</strong> (line <span class="linenumber">496</span>)
 </h4> 
<h4><i>void</i> <strong>PXTtoPHP(

$PXT)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $PXT</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodremoveIncludes" id="methodremoveIncludes"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method removeIncludes</strong> (line <span class="linenumber">324</span>)
 </h4> 
<h4><i>phpQueryClass</i> <strong>removeIncludes(
phpQueryClass
$_)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Removes included templates from parsed one.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>phpQueryClass $_</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - public</li>
		</ul>
</div>
<a name="methodsaveTemplate" id="methodsaveTemplate"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method saveTemplate</strong> (line <span class="linenumber">223</span>)
 </h4> 
<h4><i>string|false</i> <strong>saveTemplate(
phpQueryClass
$_, string
$templatePath, [string
$templateName = null], [array
$dependencies = array()], [string
$cacheDir = null], [bool
$unloadDocument = true])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Creates new template and returns it's path.</h5>
<div class="desc"><p>If You want to use self::$fixWebRoot You have to pass phpQueryClass object directly.  CAUTION: this method will call unload() on passed phpQuery object, so You cant use it futher. Use $unloadDocument to avoid this.</p></div>
		<h4>Parameters</h4>
	<ul>
			<li><strong>phpQueryClass $_</strong>: String from object will be fetched with htmlWithTag(), so take care of proper stack.</li>
			<li><strong>string $templatePath</strong>: </li>
			<li><strong>string $templateName</strong>: </li>
			<li><strong>array $dependencies</strong>: </li>
			<li><strong>string $cacheDir</strong>: </li>
			<li><strong>bool $unloadDocument</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - public</li>
		</ul>
</div>
<a name="methodsrcFilePath" id="methodsrcFilePath"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Static Method srcFilePath</strong> (line <span class="linenumber">357</span>)
 </h4> 
<h4><i>void</i> <strong>srcFilePath(
)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<a name="methodclearCache" id="methodclearCache"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method clearCache</strong> (line <span class="linenumber">335</span>)
 </h4> 
<h4><i>int</i> <strong>clearCache(
[string
$search = '*'])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Clears cache folder. Can be limited to files containing $search in names.</h5>
<div class="desc"><p>Returns number of deleted files.</p></div>
		<h4>Parameters</h4>
	<ul>
			<li><strong>string $search</strong>: Optional. Search pattern, accepts wildcard. @see http://php.net/glob</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - public</li>
		</ul>
</div>
<a name="methodrunCallback" id="methodrunCallback"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method runCallback</strong> (line <span class="linenumber">345</span>)
 </h4> 
<h4><i>void</i> <strong>runCallback(

$_, 
$callback)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		<h4>Parameters</h4>
	<ul>
			<li><strong> $_</strong>: </li>
			<li><strong> $callback</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>access</strong> - protected</li>
		</ul>
</div>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage2" ) );</script></div>
<div class="tab-page" id="iVars">
<h2 class="tab">Inherited Variables</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "iVars" ) );</script>
<!-- =========== VAR INHERITED SUMMARY =========== -->
<A NAME='var_inherited_summary'><!-- --></A>
<h3>Inherited Class Variable Summary</h3>

	</div>
<div class="tab-page" id="iMethods">
<h2 class="tab">Inherited Methods</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "iMethods" ) );</script>
<!-- =========== INHERITED METHOD SUMMARY =========== -->
<A NAME='functions_inherited'><!-- --></A>
<h3>Inherited Method Summary</h3>

	</div>
</div>
<script type="text/javascript">
//<![CDATA[

setupAllTabs();

//]]>
</script>
	<div id="credit">
		<hr />
		Documentation generated on Mon, 30 Jul 2007 16:33:59 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>
	</div>
</body>
</html>